/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.*;
import java.io.IOException;

/**
 * @author CULUN
 */
public class GameDesign {
    
//<editor-fold defaultstate="collapsed" desc=" Generated Fields ">//GEN-BEGIN:|fields|0|
    private Image Pikachu_1;
    private TiledLayer hinhNen;
    private Image play1;
    private TiledLayer play_1;
//</editor-fold>//GEN-END:|fields|0|
    
//<editor-fold defaultstate="collapsed" desc=" Generated Methods ">//GEN-BEGIN:|methods|0|
//</editor-fold>//GEN-END:|methods|0|

    public Image getPikachu_1() throws java.io.IOException {//GEN-BEGIN:|1-getter|0|1-preInit
        if (Pikachu_1 == null) {//GEN-END:|1-getter|0|1-preInit
            // write pre-init user code here
            Pikachu_1 = Image.createImage("/Pikachu_1.png");//GEN-BEGIN:|1-getter|1|1-postInit
        }//GEN-END:|1-getter|1|1-postInit
        // write post-init user code here
        return this.Pikachu_1;//GEN-BEGIN:|1-getter|2|
    }//GEN-END:|1-getter|2|

    public TiledLayer getHinhNen() throws java.io.IOException {//GEN-BEGIN:|2-getter|0|2-preInit
        if (hinhNen == null) {//GEN-END:|2-getter|0|2-preInit
            // write pre-init user code here
            hinhNen = new TiledLayer(1, 1, getPikachu_1(), 240, 320);//GEN-BEGIN:|2-getter|1|2-midInit
            int[][] tiles = {
                {1}
            };//GEN-END:|2-getter|1|2-midInit
            // write mid-init user code here
            for (int row = 0; row < 1; row++) {//GEN-BEGIN:|2-getter|2|2-postInit
                for (int col = 0; col < 1; col++) {
                    hinhNen.setCell(col, row, tiles[row][col]);
                }
            }
        }//GEN-END:|2-getter|2|2-postInit
        // write post-init user code here
        return hinhNen;//GEN-BEGIN:|2-getter|3|
    }//GEN-END:|2-getter|3|
    
     public Image getPlay1() throws java.io.IOException {
        if (play1 == null) {
            // write pre-init user code here
            play1 = Image.createImage("/play1.png");
        }
        // write post-init user code here
        return this.play1;
    }

    public TiledLayer getPlay_1() throws java.io.IOException {
        if (play_1 == null) {
            // write pre-init user code here
            play_1 = new TiledLayer(1, 1, getPlay1(), 240, 320);
            int[][] tiles = {
                {1}
            };
            // write mid-init user code here
            for (int row = 0; row < 1; row++) {
                for (int col = 0; col < 1; col++) {
                    play_1.setCell(col, row, tiles[row][col]);
                }
            }
        }
        // write post-init user code here
        return play_1;
    }
    
}
